<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui" dir="ltr" lang="en-US">
    <h:head>
        <title>Prime Faces</title>
        <style type="text/css">
            .ui-fileupload {
                width: 800px;
                margin: 0 auto;
            }
        </style>
    </h:head>
    <h:body>
		<h:form enctype="multipart/form-data">
			<p:growl id="messages" showDetail="true" life="10000"/>
			<p:fileUpload value="#{fileUploadController.file1}" mode="simple" /><br/>
			<p:fileUpload value="#{fileUploadController.file2}" mode="simple" /><br/>
			<p:fileUpload value="#{fileUploadController.file3}" mode="simple" /><br/>
			<p:inputText id ="imagetxt" value="#{fileUploadController.imagetxt}" /><br/>
			<p:commandButton value="Submit" ajax="false"
				actionListener="#{fileUploadController.upload}" />
		</h:form>

</h:body>
</html>